Conditions | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | View Code Duplication | import { addRowAfter } from 'prosemirror-tables'; |
|
11 | static getMenuItem(schema) { |
||
12 | if (!this.isAvailable(schema)) { |
||
13 | throw new Error('Table not available in schema!'); |
||
14 | } |
||
15 | |||
16 | return new MenuItem({ |
||
17 | command: addRowAfter, |
||
18 | icon: svgIcon('table-row-plus-after'), |
||
19 | label: LANG.plugins.prosemirror['label:table-add-row-after'], |
||
20 | }); |
||
21 | } |
||
22 | } |
||
23 |